﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;

namespace ConvexPolygon
{
    public partial class frmHelp : Form
    {
        public frmHelp()
        {
            InitializeComponent();
            LoadText();
        }

        private void LoadText()
        {
            Assembly _assembly;
            StreamReader _textStreamReader;
            try
            {
                _assembly = Assembly.GetExecutingAssembly();
                _textStreamReader = new StreamReader(_assembly.GetManifestResourceStream("ConvexPolygon.help.rtf"));
                txtInfo.Rtf = _textStreamReader.ReadToEnd(); ;
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
                MessageBox.Show("Error accessing resources!");
            }

        }



        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
